package com.itheima.mybytestream2;

import java.io.*;

public class ByteStreamDemo3 {
    public static void main(String[] args) throws IOException {
        //字符缓冲流
        //有两个特有的方法：readline和writeline 表示一次读或者写一行

        //字符缓冲输入流
        BufferedReader br = new BufferedReader(new FileReader("a.txt"));

//        String s = br.readLine();
//        System.out.println(s);

        String s;
        while(((s=br.readLine()))!=null){
            System.out.println(s);
        }

        br.close();

    }
}
